package com.linxianqin.log.controller;

import com.linxianqin.log.domain.Enum.BusinessTypeEnum;
import com.linxianqin.log.annotation.SysLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lxq
 * @version 1.00
 * @Date 2020/12/10
 */
@Slf4j
@RestController
@RequestMapping("api/test")
public class TestLogController {
    @SysLog(module = "测试日志功能", businessType = BusinessTypeEnum.INSERT, abstracting="测试日志功能")
    @GetMapping()
    public void getUserByRoleId(){
        log.info("请求了接口");
    }
}
